#define _CRT_SECURE_NO_WARNINGS 1
#include"shared_ptr.h"
int main()
{
	
	jlf::shared_ptr<int> sp1(new int(1));
	jlf::shared_ptr<int> sp2(new int(2));
	cout << sp1.operator*() << endl;
	cout << sp1.operator->() << endl;
	sp1 = sp2;
	jlf::shared_ptr<int> sp3(sp1);
	cout << sp1.operator*() << endl;
	cout << sp1.operator->() << endl;
	cout << endl << endl;
	cout << sp3.operator*() << endl;
	cout << sp3.operator->() << endl;
	

	return 0;
}